package com.sunwayworld.basemodule.common.asynctask.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "lims.async-taskexecutor")
public class AsyncTaskExecutorConfig {
    private boolean enable;
    private String currentServerId; //当前应用节点
    private Long scheduleGetTaskSecond; //间隔多少秒去异步任务池去领取任务

    public boolean getEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public String getCurrentServerId() {
        return currentServerId;
    }

    public void setCurrentServerId(String currentServerId) {
        this.currentServerId = currentServerId;
    }

    public Long getScheduleGetTaskSecond() {
        return scheduleGetTaskSecond;
    }

    public void setScheduleGetTaskSecond(Long scheduleGetTaskSecond) {
        this.scheduleGetTaskSecond = scheduleGetTaskSecond;
    }
}
